﻿<link rel="stylesheet" type="text/css" href="/Content/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="/Content/Site.css" />
<link rel="stylesheet" type="text/javascript" href="/Scripts/bootstrap.js" />
<link rel="stylesheet" type="text/javascript" href="/Scripts/jquery-1.8.2.js" />
@if (Request.IsAuthenticated) {
   
        <span id="hello">Góðan daginn</span> <p class="btn btn-small"> @Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })!
        @using (Html.BeginForm("Logoff", "Account", FormMethod.Post, new { id = "logoutForm" })) {
            @Html.AntiForgeryToken()
            <a class="btn btn-small" href="javascript:document.getElementById('logoutForm').submit()">Útskrá</a>
        }
    </p>
} else {
    <ul>
        <li class="btn btn-small">@Html.ActionLink("Nýskráning", "Register", "Account", routeValues: null,htmlAttributes: new { id = "registerLink" })</li>
        <li class="btn btn-small">@Html.ActionLink("Innskrá", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
    </ul>
}
